package com.centriole.common.entity;

import java.util.List;

/**
 *  功   能： 对外使用的 权限 实体类
 *  创建人：陈默晗
 *  时   间：2018年4月10日上午10:01:18
 */
public class ExPermission extends BaseEntity{

    /**
     `permissionId`  'UUID主键',
     `serviceName` , 服务名
     `permissionName` '权限名称',
     `permissionResource` v'权限对应访问的资源名',
     */
    private String permissionId;
    private String serviceName;
    private String permissionName;
    private String permissionResource;
    private List<ExRole> roles;

    public String getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(String permissionId) {
        this.permissionId = permissionId;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName;
    }

    public String getPermissionResource() {
        return permissionResource;
    }

    public void setPermissionResource(String permissionResource) {
        this.permissionResource = permissionResource;
    }

    public List<ExRole> getRoles() {
        return roles;
    }

    public void setRoles(List<ExRole> roles) {
        this.roles = roles;
    }

    @Override
    public String toString() {
        return "ExPermission{" +
                "permissionId='" + permissionId + '\'' +
                ", permissionName='" + permissionName + '\'' +
                ", permissionResource='" + permissionResource + '\'' +
                '}';
    }
}
